//
//  NSString+HLQRegex.h
//  e_card
//
//  Created by gynjobs on 2017/5/18.
//  Copyright © 2017年 haodai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (HLQRegex)
//判断字符串是否为空
+ (BOOL) isBlankStringWithString:(NSString *)string;
- (BOOL)isUrlString;
- (CGSize)sizeWithfont:(UIFont *)font maxWidth:(CGFloat)maxW;

- (CGSize)sizeWithFont:(UIFont *)font byHeight:(CGFloat)height;

- (CGSize)sizeWithfont:(UIFont *)font;
// 最基础的验证函数，逻辑可以修改，方法名尽量不要修改

// 验证纯数字
+(BOOL)validatePureNum:(NSString *)string;

//验证邮箱

+ (BOOL) validateEmail:(NSString *)email;

//手机号码验证

+ (BOOL) validateMobile:(NSString *)mobile;

//车牌号验证

+ (BOOL) validateCarNo:(NSString *)carNo;

//用户名验证

+ (BOOL) validateUserName:(NSString *)name;

//用户昵称验证

+ (BOOL) validateNickname:(NSString *)nickname;

//密码验证

+ (BOOL) validatePassword:(NSString *)passWord;

//身份证号验证

+ (BOOL) validateIdentityCard:(NSString *)value;

// 银行卡号验证

+ (BOOL) validCreditNumber:(NSString*)value;


// 数值验证，最大值，最小值
+ (BOOL) validateNumRange:(NSString *) numStr withMax:(NSInteger )numMax withMin:(NSInteger) numMin;


// 验证字符串最大长度，最小长度
+ (BOOL) validateLenghLimit:(NSString*) value  withMin:(NSInteger) min;

@end
